package com.itfreer.cms.dictionary;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Component;

import com.itfreer.form.dictionary.LocalDictionaryBase;
import com.itfreer.form.dictionary.base.DictionaryItem;

/**
 * 定义栏目模型本地字典
 */
@Component
public class ColumnModeDictionary extends LocalDictionaryBase {

	@Override
	public String getDictionaryName() {
		return "cms_columnmode";
	}

	@Override
	protected List<DictionaryItem> getDictionarys() {
		List<DictionaryItem> list = new ArrayList<DictionaryItem>();
		
		DictionaryItem item = new DictionaryItem();
		item.setId("NEWS");
		item.setCode("NEWS");
		item.setDisplay("新闻");
		item.setOrder(1);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("NOTICE");
		item.setCode("NOTICE");
		item.setDisplay("通知");
		item.setOrder(2);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("PICTURE");
		item.setCode("PICTURE");
		item.setDisplay("图集");
		item.setOrder(3);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("VIDEO");
		item.setCode("VIDEO");
		item.setDisplay("视频");
		item.setOrder(4);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("DOWNLOAD");
		item.setCode("DOWNLOAD");
		item.setDisplay("下载");
		item.setOrder(5);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("LIBRARY");
		item.setCode("LIBRARY");
		item.setDisplay("文库");
		item.setOrder(6);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("RECRUIT");
		item.setCode("RECRUIT");
		item.setDisplay("招聘");
		item.setOrder(7);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("PRODUCT");
		item.setCode("PRODUCT");
		item.setDisplay("产品");
		item.setOrder(8);
		list.add(item);
		
		return list;
	}
}
